package com.symbio.ishenapi.order.controller;

import com.symbio.ishenapi.common.controller.BaseController;
import com.symbio.ishenapi.order.model.TmUnion;
import io.jboot.web.controller.annotation.RequestMapping;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;


@RequestMapping("/tmUnionController")
public class TmUnionController extends BaseController {


    /**
     * 飞
     * 根据订单id获取联合会诊医生列表
     */
    public void findByOrderId(){
        //TmUnion tmUnion = (TmUnion)getReqBodyObject(TmUnion.class);
       String orderId = getPara("orderId");
       if(orderId == null || "".equals(orderId)){
           renderJsonError(40003,"订单id");
           return;
       }
        System.out.println(orderId);
        Map map = TmUnion.dao.findByOrderId(new BigInteger(orderId),getQueryModel());
        renderPageJsonRet(map.get("count"),map.get("data"));
    }
}
